//
//  Car.m
//  练习1
//
//  Created by apple on 15/8/9.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "Car.h"

@implementation Car

@synthesize brand = _brand;
@synthesize model = _model;
@synthesize color = _color;
- (id)init
{
    return [self initWithBrand:@"奥迪" model:@"A8" color:@"黑色"];
}

- (id)initWithBrand:(NSString *)brand model:(NSString *)model
{
    return [self initWithBrand:brand model:model color:@"黑色"];
}

- (id)initWithBrand:(NSString *)brand model:(NSString *)model color:(NSString *)color
{
    if (self = [super init])
    {
        self.brand = brand;
        self.model = model;
        self.color = color;
    }
    return self;
}
@end
